﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Models
{
    public class Product
    {

        public int Id { get; set; }
        [Display(Name ="类别")]
        [Required(ErrorMessage ="{0}必填")]
        public int CategrayId { get; set; }

        [Display(Name = "最低价格")]
        [DataType(DataType.Currency)]   // 货币
        public decimal LowPrice { get; set; }
        [Display(Name = "名称")]
        [Required(ErrorMessage = "{0}必填")]
        public string Name { get; set; }
        [Display(Name = "图片")]
        public string DefaultImage { get; set; } = "";

        [Display(Name = "品牌")]
        public string Brand { get; set; } = "";
        [Display(Name = "描述")]
        public string Remark { get; set; } = "";

        
    }
}
